jQuery.extend({
	openWinUrl: function(param, dialogParam) {
		var tdiv = $("<div></div>").attr("title", param.title && param.title != "" ? param.title:null);
		var tframe = $("<iframe></iframe>").attr("src", param.url?param.url:"").css({"width":"100%", "height":"100%"});
		tdiv.append(tframe).dialog(dialogParam);
	}
});

$(function() {
	$("#settings").css("marginRight",-$('#settings').width()).bind({"contextmenu": false,"selectstart": false,"dragstart": false,"beforecopy": false})
		.find(".grid3").hover(
		  	function(){
		    	$(this).css({"top":"1px","left":"1px"});
		  	},
		  	function(){
		  		$(this).css({"top":"0px","left":"0px"});
		  	}
		);
	$("#convenient").click(function(){
		if($('#settings').css("marginRight") != "0px"){
			//$(this).css({"background":"url(../../images/sys/arrow-right.png) no-repeat center center"});
			$('#settings').animate({marginRight:0},500);
		}else{
			//$(this).css({"background":"url(../../images/sys/arrow-left.png) no-repeat center center"});
			$('#settings').animate({marginRight:-$('#settings').width()},500);
		}
	}).hover(
	  	function(){
	    	$(this).css({"color":"#FFFFFF"});
	  	},
	  	function(){
	    	$(this).css({"color":""});
	  	}
	);
	$("#settings>div>div>.content a").hover(
	  	function(){
	    	$(this).css({"color":"#FFFFFF"});
	    	$(this).addClass("onmousehover");
	  	},
	  	function(){
	    	$(this).css({"color":""});
	    	$(this).removeClass("onmousehover");
	    	$(this).removeClass("onmousedown");
	  	}
	).mousedown(function(){
		$(this).removeClass("onmousehover");
		$(this).addClass("onmousedown");
	});
	
	$("#slider").slider();

});
